<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>用户信息录入</title>
<link rel="stylesheet" href="/layui/css/layui.css" media="all">
</head>
<body style="margin: 0 auto; width: 900px;">
        <fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
                <legend>用户信息录入</legend>
              </fieldset>
<form class="layui-form" action="/insertUser" method="post">
  
<!--  <div class="layui-form-item">-->
<!--    <label class="layui-form-label">用户ID</label>-->
<!--    <div class="layui-input-block">-->
<!--      <input type="text" name="user_id" placeholder="请输入用户ID" autocomplete="off" class="layui-input">-->
<!--    </div>-->
<!--  </div>-->

  
  <div class="layui-form-item">
    <label class="layui-form-label">部门ID</label>
    <div class="layui-input-block">
      <input type="text" name="dept_id" placeholder="请输入部门ID" autocomplete="off" class="layui-input">
    </div>
  </div>
 
  <div class="layui-form-item">
    <label class="layui-form-label">登录账号</label>
    <div class="layui-input-block">
      <input type="text" name="user_name" placeholder="请输入登录账号" autocomplete="off" class="layui-input">
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">用户昵称</label>
    <div class="layui-input-block">
      <input type="text" name="nick_name" placeholder="请输入用户昵称" autocomplete="off" class="layui-input">
    </div>
  </div>
  
  <div class="layui-form-item">
    <label class="layui-form-label">用户类型</label>
    <div class="layui-input-block">
      <input type="radio" name="user_type" value="0" title="非邀请" checked>
      <input type="radio" name="user_type" value="1" title="邀请" >
      <input type="radio" name="user_type" value="2" title="中都" >
    </div>
  </div>
  
  <!-- 用户ID，系统生成，并非主键 -->
  <!--头像  -->
  <!-- 员工编号 -->
  <div class="layui-form-item">
    <label class="layui-form-label">手机号</label>
    <div class="layui-input-block">
      <input type="text" name="phone" placeholder="请输入手机号" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">固定电话</label>
    <div class="layui-input-block">
      <input type="text" name="fixation_phone" placeholder="请输入固定电话" autocomplete="off" class="layui-input">
    </div>
  </div>
  <!-- token -->
  <div class="layui-form-item">
    <label class="layui-form-label">邮箱</label>
    <div class="layui-input-block">
      <input type="text" name="email" placeholder="请输入邮箱" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">分公司名称</label>
    <div class="layui-input-block">
      <input type="text" name="filial_e" placeholder="请输入分公司名称" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">部门名称</label>
    <div class="layui-input-block">
      <input type="text" name="department" placeholder="请输入部门名称" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">职务</label>
    <div class="layui-input-block">
      <input type="text" name="duty" placeholder="请输入职务/岗位名称" autocomplete="off" class="layui-input">
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">是否应届生毕业</label>
    <div class="layui-input-block">
      <input type="radio" name="is_graduate" value="0" title="否" checked>
      <input type="radio" name="is_graduate" value="1" title="是" >
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">参加工作时间</label>
    <div class="layui-input-block">
      <input type="text" id="test1" name="join_work_time" placeholder="请选择参加工作时间" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">入职时间</label>
    <div class="layui-input-block">
      <input type="text" id="test2" name="entry_time" placeholder="请选择入职时间" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">所属专业</label>
    <div class="layui-input-block">
      <input type="text" name="profession_attribute" placeholder="请输入所属专业" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">行业</label>
    <div class="layui-input-block">
      <input type="text" name="industry" placeholder="请输入行业" autocomplete="off" class="layui-input">
    </div>
  </div>

  <div class="layui-form-item">
    <label class="layui-form-label">在职状态</label>
    <div class="layui-input-block">
      <input type="radio" name="take_office_status" value="0" title="在职" checked>
      <input type="radio" name="take_office_status" value="1" title="离职" >
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">用户地址</label>
    <div class="layui-input-block">
      <input type="text" name="user_address" placeholder="请输入用户地址" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">职称</label>
    <div class="layui-input-block">
      <input type="text" name="appellation" placeholder="请输入职称" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">擅长领域</label>
    <div class="layui-input-block">
      <input type="text" name="domain" placeholder="请输入擅长领域" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">备注</label>
    <div class="layui-input-block">
      <input type="text" name="remark" placeholder="请输入备注" autocomplete="off" class="layui-input">
    </div>
  </div>
  
  <div class="layui-form-item">
    <div class="layui-input-block">
      <button class="layui-btn" lay-submit lay-filter="*">立即提交</button>
      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
    </div>
  </div>
</form>
<script src="./layui.js"></script>
<script>
layui.use('form', function(){
  var form = layui.form;
 });

</script>
<script>
  layui.use('laydate', function(){
    var laydate = layui.laydate;
    //执行一个laydate实例
    laydate.render({
      elem: '#test1' //指定元素
    });
     //执行一个laydate实例
     laydate.render({
      elem: '#test2' //指定元素
    });
  });
  </script>
</body>
</html>